package cn.codeforfun.machine;

import cn.codeforfun.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author wangbin
 */
@Entity
@Table(name = "t_machine")
@Getter
@Setter
public class Machine extends BaseEntity {
    private String remark;
    private String host;
    private Integer port;
    private String username;
    private String password;

    @JsonIgnore
    public String getPassword() {
        return password;
    }

    @JsonProperty
    public void setPassword(String password) {
        this.password = password;
    }
}
